package com.imd.s9.feign;

import com.imd.base.BaseResponse;
import com.imd.base.BusinessException;
import com.imd.config.FeignConfig;
import com.imd.vo.s3.DictVO;
import com.imd.vo.s3.WebPageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 * @author by cuiyulong
 * describe：
 */
@FeignClient(name = "s3basic", configuration = FeignConfig.class)
public interface S3Basic {

    @RequestMapping(value = "/basic/webpage/add", method = RequestMethod.POST)
    public BaseResponse addWebpage(@RequestBody WebPageVO vo) throws BusinessException;

    @RequestMapping(value = "/basic/webpage/list", method = RequestMethod.POST)
    public BaseResponse<List> listWebpage(@RequestBody WebPageVO vo) throws BusinessException;

    @RequestMapping(value = "/basic/tenant/sync/wxPublicInfo", method = RequestMethod.GET)
    public BaseResponse<List> syncPublicInfo() throws BusinessException;

    @RequestMapping(value = "/basic/dict/list", method = RequestMethod.POST)
    public BaseResponse<List> list(@RequestBody DictVO vo);
}
